package com.study.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.study.services.BookServices;

/**
 * ͼ�������
 * @author kangshan
 *
 */
@Controller
@RequestMapping("/book")
public class BookController {
	@Autowired
	BookServices bs;

	@GetMapping("/list")
	public ModelAndView list(){
		ModelAndView mv=new ModelAndView();
		mv.addObject("list",bs.getPage(1, 5));
		return mv;
	}
}
